﻿
namespace Com.FastSearch.SharePoint.BL.SearchManager
{
    /// <summary>
    /// Defines a field that can be used for resutl sorting.
    /// </summary>
    public interface ISortField
    {
        /// <summary>
        /// The name of the field.
        /// </summary>
        string FieldName
        {
            get;
        }

        /// <summary>
        /// Whether the field is a rank profile. Rank profiles can only be used
        /// for sorting in one direction, where the highest ranked results are
        /// returned first.
        /// </summary>
        bool IsRankField
        {
            get;
        }
    }
}
